package itheima.TestThread.ThreadTest;

import java.util.concurrent.atomic.AtomicInteger;

public class MyAtomThread implements Runnable {
   AtomicInteger at = new AtomicInteger();
    @Override
    public void run() {
        int count = at.getAndIncrement();
        System.out.println("已经送了"+count+"个冰淇淋");
    }
}
